/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.strategy.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * StrategyGroupContractEditDTO
 *
 * @since 2022-11-23 15:15:20
 */
@Data
public class StrategyGroupContractEditDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @NotNull(message = "参数异常，id为空")
    private Long id;

    /**
     * 产品种类（0永续合约）
     */
    @NotBlank(message = "参数异常，productType为空")
    private String productType;

    /**
     * 名称
     */
    @NotBlank(message = "参数异常，name为空")
    @Size(max = 50, message = "参数异常，name最大长度为50")
    private String name;

    /**
     * 余额限制
     */
    @NotNull(message = "参数异常，balanceLimit为空")
    @DecimalMax(value = "2000000000", message = "参数异常，balanceLimit最大为2000000000")
    @DecimalMin(value = "0", message = "参数异常，balanceLimit最小为0")
    private BigDecimal balanceLimit;

    /**
     * 预扣燃油费
     */
    @NotNull(message = "参数异常，fuelFrozen为空")
    @DecimalMax(value = "2000000000", message = "参数异常，balanceLimit最大为2000000000")
    @DecimalMin(value = "0", message = "参数异常，balanceLimit最小为0")
    private BigDecimal fuelFrozen;

    /**
     * 平台分成比例（%）
     */
    @NotNull(message = "参数异常，platformRatio为空")
    @DecimalMax(value = "100.00", message = "参数异常，platformRatio最大为100.00")
    @DecimalMin(value = "0.00", message = "参数异常，platformRatio最小为0.00")
    private BigDecimal platformRatio;

    /**
     * 客户分成比例（%）
     */
    @NotNull(message = "参数异常，customerRatio为空")
    @DecimalMax(value = "100.00", message = "参数异常，customerRatio最大为100.00")
    @DecimalMin(value = "0.00", message = "参数异常，customerRatio最小为0.00")
    private BigDecimal customerRatio;

    /**
     * 状态（0停用、1正常）
     */
    @ApiModelProperty(value = "状态（0停用、1正常）")
    private String status;

    /**
     * 是否对用户开放( 0 否 1 是 )
     */
    @ApiModelProperty(value = "是否对用户开放( 0 否 1 是 )")
    private String isOpen;

    /**
     * 简介
     */
    @Size(max = 200, message = "参数异常，profile最大长度为200")
    private String profile;
}
